import 'package:xin_nuo_pda/bean/repair_info_entity.dart';

repairInfoEntityFromJson(RepairInfoEntity data, Map<String, dynamic> json) {
	if (json['SHEETID'] != null) {
		data.SHEETID = json['SHEETID'].toString();
	}
	if (json['TROUBLECODE'] != null) {
		data.TROUBLECODE = json['TROUBLECODE'].toString();
	}
	if (json['EQUIPMENTID'] != null) {
		data.EQUIPMENTID = json['EQUIPMENTID'].toString();
	}
	if (json['TROUBLECOMMENT'] != null) {
		data.TROUBLECOMMENT = json['TROUBLECOMMENT'].toString();
	}
	if (json['TROUBLEREASON'] != null) {
		data.TROUBLEREASON = json['TROUBLEREASON'].toString();
	}
	if (json['TROUBLETIME'] != null) {
		data.TROUBLETIME = json['TROUBLETIME'].toString();
	}
	if (json['TROUBLEREPORTER'] != null) {
		data.TROUBLEREPORTER = json['TROUBLEREPORTER'].toString();
	}
	if (json['TROUBLEREPORTERNAME'] != null) {
		data.TROUBLEREPORTERNAME = json['TROUBLEREPORTERNAME'].toString();
	}
	if (json['OWNER'] != null) {
		data.OWNER = json['OWNER'].toString();
	}
	if (json['CONFIRMOWNER'] != null) {
		data.CONFIRMOWNER = json['CONFIRMOWNER'].toString();
	}
	if (json['CONFIRMTIME'] != null) {
		data.CONFIRMTIME = json['CONFIRMTIME'].toString();
	}
	if (json['REPAIROWNER'] != null) {
		data.REPAIROWNER = json['REPAIROWNER'].toString();
	}
	if (json['REPAIRCOMMENT'] != null) {
		data.REPAIRCOMMENT = json['REPAIRCOMMENT'].toString();
	}
	if (json['STARTREPAIRTIME'] != null) {
		data.STARTREPAIRTIME = json['STARTREPAIRTIME'].toString();
	}
	if (json['ENDREPAIRTIME'] != null) {
		data.ENDREPAIRTIME = json['ENDREPAIRTIME'].toString();
	}
	if (json['RESERVED1'] != null) {
		data.RESERVED1 = json['RESERVED1'].toString();
	}
	return data;
}

Map<String, dynamic> repairInfoEntityToJson(RepairInfoEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['SHEETID'] = entity.SHEETID;
	data['TROUBLECODE'] = entity.TROUBLECODE;
	data['EQUIPMENTID'] = entity.EQUIPMENTID;
	data['TROUBLECOMMENT'] = entity.TROUBLECOMMENT;
	data['TROUBLEREASON'] = entity.TROUBLEREASON;
	data['TROUBLETIME'] = entity.TROUBLETIME;
	data['TROUBLEREPORTER'] = entity.TROUBLEREPORTER;
	data['TROUBLEREPORTERNAME'] = entity.TROUBLEREPORTERNAME;
	data['OWNER'] = entity.OWNER;
	data['CONFIRMOWNER'] = entity.CONFIRMOWNER;
	data['CONFIRMTIME'] = entity.CONFIRMTIME;
	data['REPAIROWNER'] = entity.REPAIROWNER;
	data['REPAIRCOMMENT'] = entity.REPAIRCOMMENT;
	data['STARTREPAIRTIME'] = entity.STARTREPAIRTIME;
	data['ENDREPAIRTIME'] = entity.ENDREPAIRTIME;
	data['RESERVED1'] = entity.RESERVED1;
	return data;
}